<%@page language="java" import="java.util.*"
	contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	Object IsLog = request.getSession().getAttribute("isLogin");
	Object nickName = request.getSession().getAttribute("nickName");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>足迹-后台管理系统</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<!--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> 安全链接-->
<meta http-equiv="description" content="This is my page">
<!-- favicon -->
<link rel="shortcut icon" href="<%=basePath%>public/img/foot.png"
	type="image/x-icon">
<link rel="icon" href="<%=basePath%>public/img/foot.png"
	type="image/x-icon">
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>public/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>public/css/loading.css">
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>public/css/main.css">
<link rel="stylesheet" href="<%=basePath%>public/css/common.css">
<link rel="stylesheet" href="<%=basePath%>public/layui/css/layui.css">
<script type="text/javascript"
	src="<%=basePath%>public/js/jquery-2.1.4.min.js"></script>
</head>
<body class="layui-layout-body">
	<div class="layui-layout layui-layout-admin">
		<div class="layui-header">
			<div class="left">
				<label class="logo1">足迹</label><label class="logo2">后台管理系统</label>
			</div>
			<ul class="layui-nav layui-layout-right">
				<li class="layui-nav-item"><a href="javascript:;"> <img
						src="http://t.cn/RCzsdCq" class="layui-nav-img"> <%=nickName%>
				</a>
					<dl class="layui-nav-child">
						<dd>
							<a href="">基本资料</a>
						</dd>
						<dd>
							<a href="">安全设置</a>
						</dd>
					</dl></li>
				<li class="layui-nav-item"><a href="<%=basePath%>user_quit">退出登录</a></li>
			</ul>
		</div>

		<div class="layui-side layui-bg-black">
			<div class="layui-side-scroll">
				<!-- 左侧导航区域（可配合layui已有的垂直导航） -->
				<ul class="layui-nav layui-nav-tree" lay-filter="test">
					<li class="layui-nav-item"><a href="<%=basePath%>welcome"
						target="iframe">首页</a></li>
					<li class="layui-nav-item layui-nav-itemed"><a class=""
						href="javascript:;">用户管理</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="<%=basePath%>user_list" target="iframe">用户列表</a>
							</dd>
						</dl></li>
					<li class="layui-nav-item"><a href="javascript:;">活动管理</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="<%=basePath%>active_list" target="iframe">活动列表</a>
							</dd>
							<dd>
								<a href="<%=basePath%>record_list" target="iframe">人员列表</a>
							</dd>
						</dl></li>
					<li class="layui-nav-item"><a href="javascript:;">群组管理</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="<%=basePath%>group_list" target="iframe">群组列表</a>
							</dd>
							<dd>
								<a href="<%=basePath%>member_list" target="iframe">群成员列表</a>
							</dd>
							<dd>
								<a href="<%=basePath%>chat_list" target="iframe">聊天记录列表</a>
							</dd>
							<dd>
								<a href="<%=basePath%>notice_list" target="iframe">群公告列表</a>
							</dd>
						</dl></li>
					<li class="layui-nav-item"><a href="javascript:;">轨迹管理</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="<%=basePath%>trail_list" target="iframe">轨迹列表</a>
							</dd>
						</dl></li>
				</ul>
			</div>
		</div>

		<div class="layui-body"
			style="padding-left: 10px;padding-right: 10px;">
			<!-- 内容主体区域 -->
			<iframe name="iframe" id="iframe" width="100%" style="border: 0px;"
				height="100%;" frameborder="0" scrolling="auto"
				src="<%=basePath%>welcome"></iframe>
			<div id="loadingDialog">
			  <div class="double-bounce1"></div>
			  <div class="double-bounce2"></div>
			</div>
		</div>


	</div>
	<script src="<%=basePath%>public/layui/layui.js"></script>
	<script>
		//JavaScript代码区域
		layui.use('element', function() {
			var element = layui.element;

		});
		$(document).ready(function(e) {
			var iframe = document.getElementById("iframe");
			$("dd a").click(function(){
			   $("#loadingDialog").css("display", "block");
			});
			if (iframe.attachEvent) {
				//加载完成  
				iframe.attachEvent("onload", function() {
					$("#loadingDialog").css("display", "none");
				});
			} else {
				iframe.onload = function() {
					$("#loadingDialog").css("display", "none");
				};
			}
		});
	</script>
</body>


</html>